package com.pandora.credit.mongo.service;

import com.pandora.credit.dto.request.NewsRequest;
import com.pandora.credit.dto.response.LoanResponseNextInt;
import com.pandora.credit.mongo.entity.MongoNews;

import java.util.List;

/**
 * @author developer
 */
public interface MongoNewsService {

    /**
     * queryAllLimit
     * @param length length
     * @return MongoNewsList
     */
    public List<MongoNews> queryAllLimit(int length);

    /**
     * queryByIdLimit
     * @param id id
     * @param length length
     * @return MongoNewsList
     */
    public List<MongoNews> queryByIdLimit(long id, int length);

    /**
     * doGetNews
     * @param req req
     * @param ua ua
     * @return LoanResponseNextInt
     */
    LoanResponseNextInt doGetNews(NewsRequest req, String ua);
}
